import request from '@/request/request.js'

// 获取知识类型
export const knowCategory = (params) => {
	return request({
		url: "/api/knowledge/cetagory",
		method: "get",
	})
}

// 获取知识列表
export const knowList = (params) => {
	return request({
		url: "/api/knowledge/list",
		method: "post",
		data: params,
	})
}

// 获取知识详情
export const knowDetail = (params) => {
	return request({
		url: "/api/knowledge/detail",
		method: "post",
		data: params,
	})
}

// 可提现金额
export const commissionNow = (params) => {
	return request({
		url: "/api/commission/now",
		method: "post",
		data: params,
	})
}
// 获取报价详情
export const quotationDetail = (params) => {
	return request({
		url: "/api/custom/quotation_detail",
		method: "post",
		data: params,
	})
}
// 结算报告列表
export const getFile = (params) => {
	return request({
		url: "/api/custom/get_file",
		method: "post",
		data: params,
	})
}
// 获取政策列表
export const policyList = (params) => {
	return request({
		url: "/api/policy/list",
		method: "post",
		data: params,
	})
}

// 获取政策列表
export const updateQuotation = (params) => {
	return request({
		url: "/api/custom/update_quotation",
		method: "post",
		data: params,
	})
}

// 获取政策详情
export const policyDetail = (params) => {
	return request({
		url: "/api/policy/detail",
		method: "post",
		data: params,
	})
}

// 获取视频列表
export const videoList = (params) => {
	return request({
		url: "/api/video/list",
		method: "post",
		data: params,
	})
}

// 获取视频详情
export const videoDetail = (params) => {
	return request({
		url: "/api/video/detail",
		method: "post",
		data: params,
	})
}

// 公司简介
export const customMy = (params) => {
	return request({
		url: `/api/custom/my`,
		method: "post",
		data: params,
	})
}

// 公司简介
export const companyContent = (params) => {
	return request({
		url: `/api/config/company`,
		method: "post",
		data: params,
	})
}

// 公司简介
export const companyPhone = (params) => {
	return request({
		url: `/api/config/phone`,
		method: "post",
		data: params,
	})
}
// 客户管理
export const customList = (params) => {
	return request({
		url: "/api/custom/list",
		method: "post",
		data: params,
	})
}

// 客户详情
export const customDetail = (params) => {
	return request({
		url: "/api/custom/detail",
		method: "post",
		data: params,
	})
}

// 用户用电
export const electricity = (params) => {
	return request({
		url: "/api/config/electricity",
		method: "post",
		data: params,
	})
}

// 我的报价方案
export const priceList = (params) => {
	return request({
		url: "/api/custom/priceList",
		method: "post",
		data: params,
	})
}

// 获取报价方案
export const customFile = (params) => {
	return request({
		url: "/api/custom/file",
		method: "post",
		data: params,
	})
}

//是否签约
export const signing = (params) => {
	return request({
		url: "/api/custom/signing",
		method: "post",
		data: params,
	})
}

// 新增客户报价
export const customAdd = (params) => {
	return request({
		url: "/api/custom/add_quotation",
		method: "post",
		data: params,
	})
}

// 报价详情
export const quotation = (params) => {
	return request({
		url: "/api/custom/quotation",
		method: "post",
		data: params,
	})
}

// 客户资料上传
export const information = (params) => {
	return request({
		url: "/api/custom/add_information",
		method: "post",
		data: params,
	})
}

// 查看资料
export const getinformation = (params) => {
	return request({
		url: "/api/custom/getinformation",
		method: "post",
		data: params,
	})
}

// 行业列表
export const industry_list = (params) => {
	return request({
		url: "/api/custom/industry_list",
		method: "post",
		data: params,
	})
}

// 合同管理
export const contract = (params) => {
	return request({
		url: "/api/custom/contract",
		method: "post",
		data: params,
	})
}